package com.m3958.firstgwt.server.camel;

import org.apache.camel.builder.RouteBuilder;

import com.google.inject.Inject;

public class Host2IdRouter extends RouteBuilder{
	
	@Inject
	private RewriteMapGenerator rmg;

	@Override
	public void configure() throws Exception {
		from("jms:TOOL.REWRITE.MAP").beanRef("rewriteMap");
		from("timer:foo?delay=10000&period=24h").bean(rmg,"generate");
	}

}
